1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Reference | lineto()


Syntax
lineto(x, y)

DescriptionThe lineto() command must be called between beginpath() and endpath(). Draws a line between the current point in the path and a new destination point. The two parameters set the location of the new destination point.
Tutorial
Paths


Example
nofill()
stroke(0.2)
beginpath(10, 10)
lineto(40, 40)
lineto(80, 40)
endpath()